<%@page import="Pojo.*"%>
<%@page import="java.util.ArrayList"%>
<%@page import="Pojo.DapandaCheckPojo"%>
<%@page import="sun.print.BackgroundLookupListener"%>
<%@page import="java.util.List"%>
<%@page import="Pojo.CauHoi"%>
<%@taglib  uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>


<%
    List<CauHoi> dsch = (List<CauHoi>)session.getAttribute("dsch");
    List<Ketqua> kq = (List<Ketqua>)session.getAttribute("ketqua");
    Ketqua ketqua = kq.get(0);
%>
<div id="batdauthi1">
    <div style="height: 1px"></div>
    <div id="title_thongtin"><b id="customizecauhoi">Nội dung đề thi</b></div>
    
    <div style="height: 20px"></div>
        <div id="thongtinthisinh_batdauthi">
                <div id="tatcathongtin"><b style="color: blue;font-size: 20px;margin-left: 200px;line-height: 25px">Thông tin thí sinh và điểm thi</b></div>
                <div style="height: 20px"></div>  
                <div>
                    <div style="float: left;width: 300px">
                        <b style="margin-left: 5px;font-size: 15px">Họ Tên: </b><b id="todam" style="margin-left: 12px"><%= ketqua.getThisinh().getHoTen() %></b></br></br>
                        <b style="margin-left: 5px;font-size: 15px">Điểm thi: </b><b id="todam" style="margin-left: 5px"><%= ketqua.getDiem() %></b></br></br>
                    </div>
                    <div style="float: left;width: 350px">
                        <b style="font-size: 15px">Thời gian bắt đầu: </b><b style="margin-left: 5px;font-size: 16px;color: red"><%= ketqua.getThoiGianBatDau() %></b></br></br>
                        <b style="font-size: 15px">Thời gian kết thúc: </b><b style="margin-left: 5px;font-size: 16px;color: red"><%= ketqua.getThoiGianKetThuc() %></b></br></br>
                        
                    </div>
                </div>
                <div style="height: 15px"></div>
            </div>
    <div style="height: 20px"></div>
    <div style="color: blue;font-size: 19px;"><a style="margin-left: 350px" href="ThiSinhTraCuuKetQuaThicontroller?Action=TraCuu">Trở về</a></div>
        <div style="height: 15px"></div>  
            <%
                for(int i=0;i<dsch.size();i++)
                {
                    CauHoi ch = dsch.get(i);
                %>
                <div style="height: 20px"></div>
                
                <div id="cauhoi">
                    
                    <div style="height: 15px"></div>
                    <div style="margin-left: 10px">
                        <b style="font-weight: bold; font-size: 18px; color: blue">Câu Hỏi <%=i+1%>:</b>
                        <b style="font-size: 15px">
                            <%= ch.getNoiDungCauHoi() %>
                        </b>
                    </div>
                    <div style="height: 15px"></div>
                    <div id="dapan">
                        <b>a)</b>
                        <input style="margin-left: 12px;" type="radio" name="<%=i+1%>" value="1" disabled="true"/>
                        <b style="margin-left: 20px;
                           <%
                                if(ch.getCauDung()==1){%>
                                background-color: yellow
                           <%}%>
                           "><%= ch.getLuaChon1() %></b>
                    </div>
                    <div style="height: 15px"></div>
                    <div id="dapan">
                        <b>b)</b>
                        <input style="margin-left: 12px" type="radio" name="<%=i+1%>" value="2" disabled="true"/>
                        <b style="margin-left: 20px;
                           <%
                                if(ch.getCauDung()== 2){%>
                                background-color: yellow
                           <%}%>
                           "><%= ch.getLuaChon2() %></b>
                    </div>
                    <div style="height: 15px"></div>
                    <div id="dapan">
                        <b>c)</b>
                        <input style="margin-left: 12px" type="radio" name="<%=i+1%>" value="3" disabled="true"/>
                        <b style="margin-left: 20px;
                           <%
                                if(ch.getCauDung()== 3){%>
                                background-color: yellow
                           <%}%>
                           "><%= ch.getLuaChon3() %></b>
                    </div>
                    <div style="height: 15px"></div>
                    <div id="dapan">
                        <b>d)</b>
                        <input style="margin-left: 12px" type="radio" name="<%=i+1%>" value="4" disabled="true"/>
                        <b style="margin-left: 20px;
                           <%
                                if(ch.getCauDung()== 4){%>
                                background-color: yellow
                           <%}%>
                           "><%= ch.getLuaChon4() %></b>
                    </div>
                    <div style="height: 15px"></div>
                </div>
            <%}%>
            <div style="height: 15px"></div>
        <div style="height: 20px"></div>
        <div style="color: blue;font-size: 19px;"><a style="margin-left: 350px" href="ThiSinhTraCuuKetQuaThicontroller?Action=TraCuu">Trở về</a></div>
        <div style="height: 20px"></div>
    </div>
